import request from '@/utils/request'

// 查询员工积分明细列表
export function listPointsDetails(query) {
  return request({
    url: '/wms/pointsDetails/list',
    method: 'get',
    params: query
  })
}

// 查询员工积分明细详细
export function getPointsDetails(id) {
  return request({
    url: '/wms/pointsDetails/' + id,
    method: 'get'
  })
}

// 新增员工积分明细
export function addPointsDetails(data) {
  return request({
    url: '/wms/pointsDetails',
    method: 'post',
    data: data
  })
}

// 修改员工积分明细
export function updatePointsDetails(data) {
  return request({
    url: '/wms/pointsDetails',
    method: 'put',
    data: data
  })
}

// 删除员工积分明细
export function delPointsDetails(id) {
  return request({
    url: '/wms/pointsDetails/' + id,
    method: 'delete'
  })
}
